package com.training.action.chenhao;

import java.util.Arrays;

import com.opensymphony.xwork2.ActionSupport;
import com.training.service.chenhao.EmpService;

public class DeleteempAction extends ActionSupport{
	private String uid;
	private String message;
	private EmpService empser;
   public String execute(){
	   System.out.println(uid);
	   String id[]=uid.split(";");
	   System.out.println(Arrays.toString(id));
	   for(int i=0;i<id.length;i++){
		   empser.deleteemp(id[i]);
		   message+="你已经删除了"+id[i]+"的信息";
		   }
	  
	   return SUCCESS;
   }

public String getUid() {
	return uid;
}

public void setUid(String uid) {
	this.uid = uid;
}

public EmpService getEmpser() {
	return empser;
}

public void setEmpser(EmpService empser) {
	this.empser = empser;
}

public String getMessage() {
	return message;
}

public void setMessage(String message) {
	this.message = message;
}
   
}
